package com.whcoding.mybatis.plus.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * @author Manager
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@EqualsAndHashCode
@TableName("orm_dept")
public class OrmDeptVO implements Serializable {

	/**
	 * 加上注解则表示使用数据库自增ID
	 * 反之insert的时候id取的是雪花id
	 */
	@TableId(type = IdType.AUTO)
	private Long id;
	private Integer deptId;

	@TableField("deptNo")
	private String deptNo;
	private Integer deptType;
	private String deptName;
	private Date createTime;
	private Date updateTime;
	private BigDecimal deptPerf;
	private Integer isValidFlag;
	private String shortName;
	private String remark;

	@TableLogic
	private Integer isDelete;
}
